package com.tencent.wxcloudrun.dao;

import com.tencent.wxcloudrun.model.HxUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Optional;

@Mapper
public interface HxUserMapper {
    Optional<HxUser> getUser(@Param("uid")String uid);

    Optional<HxUser> getUserById(@Param("id") Integer id);

    void addUser(HxUser hxUser);

    void collectGift(Integer id);
}
